import java.io.*;
import java.net.*;
import java.util.Scanner; // 确保正确导入 Scanner 类

public class HelloClient {
    public static void main(String[] args) throws Exception {
        Socket client = new Socket("127.0.0.1", 9999);
        Scanner scanner = new Scanner(client.getInputStream());
        if (scanner.hasNext()) {
            System.out.println("[HelloClient]" + scanner.next());
        }
        client.shutdownInput();
        client.close();
    }
}
